<script setup lang="ts">
import {ref} from 'vue'
import { defineProps } from 'vue'
type TModle = '线性回归'|'逻辑回归'|'决策树'|'随机森林'|'朴素贝叶斯'
    |'Naive Bayes'|'K领近算法'|'KNN'|'支持向量机'|'SVM'|'多项式回归'
    |'神经网络回归'|'弹性网回归'|'广义线性模型'|'多层感知器'|'MLP'|'岭回归/L2正则化'
    |'AdaBoost'|'Gradient Boosting Machines(GBM)';
const { type } = defineProps<{
  type: TModle,
}>()
const labelCol = { style: { width: '150px' } };
const value2 = ref<string>('penalty');
const value3 = ref<string>('penalty');
</script>

<template>
  <a-form v-if="type==='线性回归'" :label-col="labelCol">
    <a-form-item label="lambda">
      <a-input ></a-input>
    </a-form-item>
    <a-form-item label="正则类型">
      <a-input v-model:value="value2">
        <template #addonBefore>
          <a-select v-model:value="value3" style="width: 150px">
            <a-select-option value="penalty">penalty</a-select-option>
            <a-select-option value="regularzation">regularzation</a-select-option>
          </a-select>
        </template>
      </a-input>
    </a-form-item>
    <a-form-item label="fit_intercept">
      <a-switch></a-switch>
    </a-form-item>
    <a-form-item label="max_iter">
      <a-input ></a-input>
    </a-form-item>
  </a-form>
</template>

<style scoped lang="scss">

</style>